package com.sckj.springboot.exception;

public enum BusinessMsgEnum {

    /** 参数异常 */
    PARMETER_EXCEPTION("102","参数异常"),

    //等待超时
    SERVICE_TIME_OUT("103","服务调用超时"),

    //参数过大
    PARMETER_BIG_EXCEPTION("102","输入数量不能超过50个"),

    //500提示
    UNEXPECTED_EXCEPTION("500","系统发生异常，请联系管理员");

    private String code;
    private String msg;

    public String code() {
        return code;
    }

    public String msg() {
        return msg;
    }

    private BusinessMsgEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
